<template>
  <div class="title-item">
    <div class="content">
      <span>{{ title }}</span>
      <span>{{ describe }}</span>
    </div>
    <img src="@/assets/image/home/left/title_bg.png" class="image_bg" />
    <img src="@/assets/image/home/left/guang.png" class="image_guang" />
  </div>
</template>

<script>
export default {
  props: {
    title: { //标题
      type: String,
      default: "title",
    },
    describe: {  //描述
      type: String,
      default: "describe",
    },
  },
};
</script>

<style lang="scss" scoped>
.title-item {
  position: relative;
  overflow: visible;
  height: 39px;
  width: 100%;
  .content {
    position: absolute;
    z-index: 11;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    > span {
      color: #fff;
      &:first-child {
        font-size: 24px;
        font-weight: bold;
        margin-right: 10px;
      }
      &:last-child {
        font-size: 14px;
      }
    }
  }
  .image_bg {
    position: absolute;
    height: 39px;
    z-index: 10;
  }
  .image_guang {
    position: absolute;
    width: 412px;
    height: 63px;
    z-index: 9;
    top: 28px;
    left: 25px;
  }
}
</style>
